home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / Include / SLGConst.k < prev    next >
Encoding:
Text File  |  1996-04-25  |  6.1 KB  |  230 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                SLGConst.k
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef SLGCONST_K
  11. #define SLGCONST_K
  12.  
  13. //========================================================================================
  14. //    Inks
  15. //========================================================================================
  16.  
  17. enum FW_EStandardInks
  18. {
  19.     FW_kNormalInk,
  20.     FW_kNormalTextInk,
  21.     FW_kInvertInk,
  22.     FW_kWhiteEraseInk
  23. };
  24.  
  25. //========================================================================================
  26. //    Style dash kinds
  27. //========================================================================================
  28.  
  29. enum FW_EStyleDash
  30. {
  31.     FW_kSolidLine,
  32.  
  33.     FW_kDash,
  34.     FW_kDot,
  35.     FW_kDashDot,
  36.     FW_kDashDotDot,
  37.     
  38.     FW_kOpaque                 = 0x100,
  39.     
  40.     FW_kDashOpaque            = FW_kDash            + FW_kOpaque,
  41.     FW_kDotOpaque            = FW_kDot            + FW_kOpaque,
  42.     FW_kDashDotOpaque        = FW_kDashDot        + FW_kOpaque,
  43.     FW_kDashDotDotOpaque    = FW_kDashDotDot    + FW_kOpaque
  44. };
  45.  
  46. //========================================================================================
  47. //    Styles
  48. //========================================================================================
  49.  
  50. enum FW_EStandardStyles
  51. {
  52.     FW_kNormalStyle,
  53.     FW_kDashStyle,
  54.     FW_kDotStyle,
  55.     FW_kDashDotStyle,
  56.     FW_kDashDotDotStyle
  57. };
  58.  
  59. //========================================================================================
  60. //    Fonts
  61. //========================================================================================
  62.  
  63. enum FW_EStandardFonts
  64. {
  65.     FW_kNormalFont,
  66.     FW_kSystemFont12,
  67.     FW_kHelvetica12,
  68.     FW_kTimes12,
  69.     FW_kCourier12,
  70.     FW_kPalatino12
  71. };
  72.  
  73. //========================================================================================
  74. //    Font Style
  75. //========================================================================================
  76.  
  77. typedef unsigned short FW_FontStyle;
  78.  
  79. enum FW_EFontStyles
  80. {
  81.     FW_kPlain             = 0x0000,
  82.     FW_kBold             = 0x0001,
  83.     FW_kItalic             = 0x0002,
  84.     FW_kUnderline         = 0x0004,
  85.     FW_kOutline         = 0x0008,
  86.     FW_kShadow             = 0x0010,
  87.     FW_kCondensed         = 0x0020,
  88.     FW_kExtended         = 0x0040,
  89.     FW_kStrikeOut         = 0x0080
  90. };
  91.  
  92. //========================================================================================
  93. //    Transfer Modes
  94. //========================================================================================
  95.  
  96. typedef unsigned long FW_TransferModes;
  97.  
  98. #define FW_kCopy                0xFFFF0000L
  99. #define FW_kNotCopy                0xFFFF0001L
  100. #define FW_kOr                    0xFFFF0002L
  101. #define FW_kNotOr                0xFFFF0003L
  102. #define FW_kXOr                    0xFFFF0004L
  103. #define FW_kNotXOr                0xFFFF0005L
  104. #define FW_kClear                0xFFFF0006L
  105. #define FW_kNotClear            0xFFFF0007L
  106. #define FW_kHilite                0xFFFF0008L
  107.  
  108. #define FW_kErase                0xFFFF0009L        // 'Special' Transfer Mode
  109. #define FW_kInvert                0xFFFF000AL        // 'Special' Transfer Mode
  110.  
  111. #define FW_kLastTransferMode    FW_kInvert
  112.  
  113. //========================================================================================
  114. //    Rendering Verbs
  115. //========================================================================================
  116.  
  117. enum FW_ERenderVerbs
  118. {
  119.     FW_kNoRendering,
  120.     FW_kFrame,
  121.     FW_kFill
  122. };
  123.  
  124. //========================================================================================
  125. //    Single-line Text Alignment Options
  126. //========================================================================================
  127.  
  128. typedef unsigned short FW_TextAlignment;
  129.  
  130. enum
  131. {
  132.     // Horizontal alignment
  133.     FW_kTextAlignLeft                        =    0,        // default
  134.     FW_kTextAlignRight                        =    0x0001,
  135.     FW_kTextAlignHCenter                    =    0x0002,
  136.     
  137.     FW_kPrivTextAlignHorzAlignMask            =    0x000F,
  138.  
  139.     // Vertical alignment
  140.     FW_kTextAlignTop                        =    0,        // default
  141.     FW_kTextAlignBottom                        =    0x0010,
  142.     FW_kTextAlignBaseLine                    =    0x0020,
  143.     FW_kTextAlignVCenter                    =    0x0040,
  144.     
  145.     FW_kPrivTextAlignVertAlignMask            =    0x00F0,
  146.     
  147.     // Position to use
  148.     FW_kTextAlignUseSpecifiedPos            =     0,        // default
  149.     FW_kTextAlignUseCurrentPos                =    0x0100,
  150.     
  151.     FW_kPrivTextAlignUsePosMask                =    0x0F00
  152. };
  153.  
  154. //========================================================================================
  155. //    Text Box Alignment Options
  156. //========================================================================================
  157.  
  158. typedef unsigned short FW_TextBoxOptions;
  159.  
  160. enum
  161. {
  162.     // Horizontal justification
  163.     FW_kTextBoxJustifyLeft                    = 0,        // default
  164.     FW_kTextBoxJustifyRight                    = 0x0001,
  165.     FW_kTextBoxJustifyHCenter                = 0x0002,
  166.     
  167.     FW_kPrivTextBoxHorzJusificationMask        = 0x000F,
  168.     
  169.     // Vertical jusitification
  170.     FW_kTextBoxJustifyTop                    = 0,        // default
  171.     FW_kTextBoxJustifyBottom                = 0x0010,
  172.     FW_kTextBoxJustifyVCenter                = 0x0020,
  173.  
  174.     FW_kPrivTextBoxVertJusificationMask        = 0x00F0,
  175.     
  176.     // Should the text be clipped to the box?  If not, make sure the box is large enough
  177.     FW_kTextBoxNoClipToBox                    = 0,
  178.     FW_kTextBoxClipToBox                    = 0x0100,    // default
  179.  
  180.     // The options below apply only if the following flag is not set
  181.     FW_kTextBoxSingleLine                    = 0x0200,
  182.     
  183.     // Word wrapping and breaking options
  184.     FW_kTextBoxWordWrap                        = 0x0400,
  185.     FW_kTextBoxWordBreak                    = 0x0800
  186. };
  187.  
  188.  
  189. //========================================================================================
  190. // Icon drawing
  191. //========================================================================================
  192.  
  193. typedef unsigned short FW_RenderIconAlignment;
  194.  
  195. enum
  196. {
  197.     // Horizontal alignment
  198.  
  199.     FW_kIconAlignLeft                        =    0,        // default
  200.     FW_kIconAlignCenter                        =    0x0001,
  201.     FW_kIconAlignRight                        =    0x0002,
  202.     
  203.     FW_kPrivIconHorzMask                    =    0x000F,
  204.     
  205.     // Vertical alignment
  206.     
  207.     FW_kIconAlignTop                        =    0,
  208.     FW_kIconAlignVCenter                    =    0x0010,
  209.     FW_kIconAlignBottom                        =    0x0020,
  210.     
  211.     FW_kPrivIconVertMask                    =    0x00F0,
  212.     
  213.     // Scale the icon to the rectangle
  214.     FW_kIconScaleToFit                        =    0x0100
  215. };
  216.  
  217. typedef unsigned short FW_RenderIconTransform;
  218.  
  219. //    [HLX] I can't use <Icons.h> because of ODFrc
  220. enum
  221. {    
  222.     FW_kIconTransformNone                    =    0x0000,        //    kTransformNone,
  223.     FW_kIconTransformDisabled                =     0x0001,        //    kTransformDisabled,
  224.     FW_kIconTransformOffline                =     0x0002,        //    kTransformOffline,
  225.     FW_kIconTransformOpen                    =     0x0003,        //    kTransformOpen,
  226.     FW_kIconTransformSelected                =     0x4000        //    kTransformSelected
  227. };
  228.  
  229. #endif // SLGCONST_H
  230.